import 'package:dailoz/generated/json/base/json_field.dart';
import 'package:dailoz/generated/json/response_json_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class ResponseJsonEntity {
  late int code;
  late String message;
  dynamic data;

  ResponseJsonEntity();

  factory ResponseJsonEntity.fromJson(Map<String, dynamic> json) =>
      $ResponseJsonEntityFromJson(json);

  Map<String, dynamic> toJson() => $ResponseJsonEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
